#include "stdafx.h"
#include "car.h"

Car::Car()
{
	vehicleType=CAR;
}

Car::Car(string lRegNum, string lMake, string lModel, bool lInRent, int lAge, bool lAutoGearbox,
	int lNumSeats, int lNumDoors):Vehicle(lRegNum,lMake,lModel,lInRent,lAge,lAutoGearbox)
{
	vehicleType=CAR;
	numSeats=lNumSeats;
	numDoors=lNumDoors;
}

int Car::getNumSeats(void)
{
	return numSeats;
}

int Car::getNumDoors(void)
{
	return numDoors;
}

void Car::setNumSeats(int lNumSeats)
{
	numSeats=lNumSeats;
}

void Car::setNumDoors(int lNumDoors)
{
	numDoors=lNumDoors;
}

void Car::changeCarDetails(string lRegNum, string lMake, string lModel, bool lInRent, int lAge, bool lAutoGearbox,
	int lNumSeats, int lNumDoors)
{
	regNum=lRegNum;
	make=lMake;
	model=lModel;
	inRent=lInRent;
	age=lAge;
	autoGearbox=lAutoGearbox;
	
	numSeats=lNumSeats;
	numDoors=lNumDoors;
}
